Skip to content

ci: add no-console ESLint rule to catch accidental console.log in production (Closes #945) - #1039

Open
waterWang wants to merge 1 commit into
CredenceOrg:mainfrom
waterWang:feat/no-console-eslint-945
Open

ci: add no-console ESLint rule to catch accidental console.log in production (Closes #945)#1039
waterWang wants to merge 1 commit into
CredenceOrg:mainfrom
waterWang:feat/no-console-eslint-945

Conversation

@waterWang

Copy link
Copy Markdown
Contributor

Summary

Adds the ESLint no-console rule at warn level to prevent accidental console.log statements from reaching production bundles.

Changes

  • eslint.config.js — Added no-console: ['warn', { allow: ['warn', 'error'] }] rule

console.warn and console.error are intentionally allowed for legitimate diagnostic logging.

Closes #945

…duction

Adds the ESLint 'no-console' rule at 'warn' level, allowing
console.warn and console.error for intentional logging.

Closes CredenceOrg#945
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: add a check for accidental console.log in production bundles

1 participant